package com.ljy.dao;


import com.ljy.pojo.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
//@Repository
public interface Device_Dao {


    public abstract List<Device> listdevice() throws Exception;

    public abstract Device insdevice() throws Exception;

    //根据id查询
    public abstract Device seldevice(int id) throws Exception;

    //根据id修改状态
    public abstract int upddevice(@Param("id") int id, @Param("state") int state) throws Exception;

}
